package com.eastfair.messagecenter.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import com.eastfair.messagecenter.enumeration.ProviderType;

import java.io.Serializable;
import java.math.BigDecimal;

import com.eastfair.vo.BaseVO;

/**
 * <p>
 * 实体类
 * 消息服务商
 * </p>
 *
 * @author ligang
 * @since 2022-09-08
 */
@Data
@ApiModel(value = "MsgServiceVO", description = "消息服务商")
public class MsgServiceVO extends BaseVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 供应商类型
     * #ProviderType{ALI:OK,阿里云短信;TENCENT:0,腾讯云短信;BAIDU:1000,百度云短信}
     */
    @ApiModelProperty(value = "供应商类型")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @NotNull(message = "请填写供应商类型")
    private ProviderType providerType;
    /**
     * 企业ID
     */
    @ApiModelProperty(value = "企业ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @NotEmpty(message = "请填写企业ID")
    @Size(max = 255, message = "企业ID长度不能超过255")
    private String firmId;
    /**
     * 应用ID
     */
    @ApiModelProperty(value = "应用ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @NotEmpty(message = "请填写应用ID")
    @Size(max = 255, message = "应用ID长度不能超过255")
    private String appId;
    /**
     * 应用密码
     */
    @ApiModelProperty(value = "应用密码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @NotEmpty(message = "请填写应用密码")
    @Size(max = 255, message = "应用密码长度不能超过255")
    private String appSecret;
    /**
     * SMS服务域名
     * 百度、其他厂商会用
     */
    @ApiModelProperty(value = "SMS服务域名")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "SMS服务域名长度不能超过255")
    private String url;
    /**
     * 签名
     */
    @ApiModelProperty(value = "签名")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 100, message = "签名长度不能超过100")
    private String signName;
    /**
     * 余额
     */
    @ApiModelProperty(value = "余额")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private BigDecimal balanceMoney;
    /**
     * 发送量
     */
    @ApiModelProperty(value = "发送量")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer sendTotal;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "备注长度不能超过255")
    private String templateDescribe;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long tenantId;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long subsystemId;
    /**
     * 团队id
     */
    @ApiModelProperty(value = "团队id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long teamId;
    /**
     * 是否生效(默认1：可用 0:不可用)
     */
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isEnabled;
    /**
     * 是否删除(默认0：未删除 1:已删除)
     */
    @ApiModelProperty(value = "是否删除(默认0：未删除 1:已删除)")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isDeleted;
}
